﻿@model Hero
<div style="margin-top: 15px">
</div>
<table>
    <tr>
        <td style="vertical-align:top">
            <img src="@Url.Image(Model.AnimatedAvatarImageId)" alt="@(Model.Name + " " + Model.Nickname)" title="@(Model.Name + " " + Model.Nickname)"  />
            <div style="margin-top: 15px">
                @Html.Raw(Model.Parameters)
                @Html.EditDialog("Heroes", "Parameters", Model.Id, Model.Parameters, null, true)
            </div>
        </td>
        <td  style="vertical-align:top">
            @Html.LinkOnHero(Model)
            <h2 style="border: none 0px; margin: 0px; padding: 0px">
                @Model.Name
                <br/>
                @Html.Raiting("Heroes", Model.Id, Model.Raiting)
            </h2>    
            <h2>
                Другие имена: @Html.EditDialog("Heroes", "Nickname", Model.Id, Model.Nickname)
            </h2>
            <h3 style="border: none 0px; margin: 0px; padding: 0px">
                @foreach (var name in Model.Nickname.Split(','))
                {
                    @name <br />
                }
            </h3>

            <div>
                @Html.Raw(Model.Description) @Html.EditDialog("Heroes", "Description", Model.Id, Model.Description, null, true)
            </div>

            <h2>
                Скиллы/Способности/Заклинания:
            </h2>
            <div>
                <nobr>
                 @foreach (var skill in Model.Skills)
                 {
                     if (skill.Parent == null)
                     {
                            @Html.LinkOnSkill(skill)
                     }
                 }</nobr>
            </div>
        </td>
    </tr>
</table>